#pragma once

#include "cocos2d.h"
#include "DataCenter.h"
#include "CCMenuItemSlider.h"

class SettingLayer: public cocos2d::CCLayerColor{
private:
	static SettingLayer* instance;
	CCMenuItemSlider* slideItem1;
	CCMenuItemSlider* slideItem2;

public:
	static SettingLayer* getInstance();
	float getSoundValue();
	float getEffectValue();
	virtual bool init();
	virtual void onExit();
	virtual void onEnter(); 
	virtual bool ccTouchBegan(CCTouch* touch, CCEvent* event);
	// implement the "static node()" method manually
	LAYER_NODE_FUNC(SettingLayer);
};